Error: COMPILER_WARNING: [#def1] passt-2340bbf867e6c3c3b5ac67345b0e841ab49bbaa5/dhcpv6.c:52:33: warning[-Wunterminated-string-initialization]: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (33 chars into 32 available) # 52 | #define STR_NOTONLINK "Prefix not appropriate for link." # | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ passt-2340bbf867e6c3c3b5ac67345b0e841ab49bbaa5/dhcpv6.c:257:27: note: in expansion of macro ‘STR_NOTONLINK’ # 257 | STATUS_NOTONLINK, STR_NOTONLINK # | ^~~~~~~~~~~~~ # 50| # define OPT_DNS_SEARCH htons_constant(24) # 51| # define OPT_CLIENT_FQDN htons_constant(39) # 52|-> #define STR_NOTONLINK "Prefix not appropriate for link." # 53| # 54| uint16_t l; Error: GCC_ANALYZER_WARNING (CWE-775): [#def2] passt-2340bbf867e6c3c3b5ac67345b0e841ab49bbaa5/qrap.c:402:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(s, (int)fd)’ passt-2340bbf867e6c3c3b5ac67345b0e841ab49bbaa5/qrap.c:141:5: enter_function: entry to ‘main’ passt-2340bbf867e6c3c3b5ac67345b0e841ab49bbaa5/qrap.c:207:25: call_function: inlined call to ‘strncpy’ from ‘main’ passt-2340bbf867e6c3c3b5ac67345b0e841ab49bbaa5/qrap.c:210:32: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)... passt-2340bbf867e6c3c3b5ac67345b0e841ab49bbaa5/qrap.c:211:33: branch_true: ...to here passt-2340bbf867e6c3c3b5ac67345b0e841ab49bbaa5/qrap.c:323:21: branch_true: following ‘true’ branch (when ‘i != 100’)... branch_true: ...to here passt-2340bbf867e6c3c3b5ac67345b0e841ab49bbaa5/qrap.c:328:20: branch_false: following ‘false’ branch (when ‘s >= 0’)... passt-2340bbf867e6c3c3b5ac67345b0e841ab49bbaa5/qrap.c:333:21: branch_false: ...to here passt-2340bbf867e6c3c3b5ac67345b0e841ab49bbaa5/qrap.c:389:12: branch_false: following ‘false’ branch (when ‘i != 100’)... passt-2340bbf867e6c3c3b5ac67345b0e841ab49bbaa5/qrap.c:394:9: branch_false: ...to here passt-2340bbf867e6c3c3b5ac67345b0e841ab49bbaa5/qrap.c:402:13: acquire_resource: opened here passt-2340bbf867e6c3c3b5ac67345b0e841ab49bbaa5/qrap.c:402:12: danger: ‘dup2(s, (int)fd)’ leaks here; was opened at [(14)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/13) # 400| fprintf(stderr, "Connected to %s\n", addr.sun_path); # 401| # 402|-> if (dup2(s, (int)fd) < 0) { # 403| perror("dup"); # 404| exit(EXIT_FAILURE);
analyzer-version-clippy | 1.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-115.us-west-2.compute.internal |
known-false-positives | /usr/share/csmock/known-false-positives.js |
known-false-positives-rpm | known-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | passt-0^20250415.g2340bbf-1.fc43 |
store-results-to | /tmp/tmp8egl1h8e/passt-0^20250415.g2340bbf-1.fc43.tar.xz |
time-created | 2025-04-25 14:42:49 |
time-finished | 2025-04-25 14:44:52 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp8egl1h8e/passt-0^20250415.g2340bbf-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp8egl1h8e/passt-0^20250415.g2340bbf-1.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |